FROM openjdk:17
# 创建目录
RUN mkdir -p /home/union
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# 指定路径
WORKDIR /home/union
# 复制jar文件到路径
COPY maku-server/target/*.jar /home/union/union.jar
# 启动应用
CMD ["java","-jar","union.jar"]